import request from '@/utils/request'
/** 隐患全过程状态 */
// 查询隐患治理列表
export function listHidden(data) {
    return request({
      url: '/hidden/ManagementProcess/list',
      method: 'post',
      data:data
  })
}


// 创建隐患治理清单
export function addHidden(data) {
    return request({
      url: '/hidden/ManagementProcess/report',
      method: 'post',
      data: data
  })
}

// 删除隐患治理清单
export function deleteHidden(processId) {
    return request({
      url: '/hidden/ManagementProcess/'+processId,
      method: 'delete',      
    })
  } 
  // 修改隐患治理清单
export function updateHidden(data) {
    return request({
      url: '/hidden/ManagementProcess',
      method: 'put',
      data: data
    })
  }
  // 查询隐患治理清单详细信息
export function getHidden(processId) {
    return request({
      url: '/hidden/ManagementProcess/' + processId,
      method: 'get'
    })
  } 